package com.bruce.tool.mq.rabbit.constant;

import lombok.Getter;

/**
 * 功能 :
 *
 * @author : Bruce(刘正航) 15:19 2019-02-14
 */
public enum RabbitCode {

    MQERROR_CONFIG_NULL("MQ001","消息配置为空"),
    MQERROR_SENDER_NULL("MQ002","消息发送者为空"),
    MQERROR_SEND_EXCEPTION("MQ003","消息发送失败"),
    MQERROR_RECEIVE_NULL("MQ004","消息接收者为空"),

    ;
    @Getter
    private String code;
    @Getter
    private String message;

    RabbitCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

}
